/*
 * @Author: Ma Yuchen
 * @Date: 2020-09-18 09:15:12
 * @LastEditors: Ma YuChen
 * @LastEditTime: 2022-06-15 14:37:51
 * @Description: file content
 * @FilePath: \BoardControl\systick.h
 */
/*!
    \file  systick.h
    \brief the header file of systick
*/

/*
    Copyright (C) 2017 GigaDevice

    2017-07-28, V1.0.0, demo for GD32F30x
*/

#ifndef SYS_TICK_H
#define SYS_TICK_H

#include <stdint.h>

typedef uint32_t TICK;

/* configure systick */
void systick_config(void);
/* delay a time in milliseconds */
void delay_1ms(uint32_t count);
void delay_1us(uint32_t count);
/* delay decrement */
void delay_decrement(void);

TICK tickGet(void);

#endif /* SYS_TICK_H */
